%module timedemo
%{
  /*header files or functions declarations */

extern   char buffer;
extern   const int YEAR;
extern   int firstYear;
extern   int secondYear;
extern   int thirdYear;
extern   int fourthYear;
extern   int fifthYear;
extern   int sixthYear;
extern   int seventhYear;
extern   int firstStatisticSize;
extern   int secondStatisticSize;
extern   int thirdStatisticSize;
extern   int thirdStatisticSize;
extern   int fourthStatisticSize;
extern   int firstListSize;
extern   int secondListSize;
extern   int thirdListSize;
extern   int firstArrayPosition; 
extern   int secondArrayPosition;
extern   int thirdArrayPosition;
extern   int fourthArrayPosition;
extern   int firstArrayListPosition;
extern   int secondArrayListPosition;
extern   int thirdArrayListPosition;
extern   pthread_t pth ,pth2, pth3, pth4, pth5, pth6, pth7;

extern int AllocMemory();
 extern int saveFile();
  extern int main();
   %}

extern   char buffer;
extern   const int YEAR;
extern   int firstYear;
extern   int secondYear;
extern   int thirdYear;
extern   int fourthYear;
extern   int fifthYear;
extern   int sixthYear;
extern   int seventhYear;
extern   int firstStatisticSize;
extern   int secondStatisticSize;
extern   int thirdStatisticSize;
extern   int thirdStatisticSize;
extern   int fourthStatisticSize;
extern   int firstListSize;
extern   int secondListSize;
extern   int thirdListSize;
extern   int firstArrayPosition; 
extern   int secondArrayPosition;
extern   int thirdArrayPosition;
extern   int fourthArrayPosition;
extern   int firstArrayListPosition;
extern   int secondArrayListPosition;
extern   int thirdArrayListPosition;
extern   pthread_t pth ,pth2, pth3, pth4, pth5, pth6, pth7;

extern int AllocMemory();
extern int saveFile();
  extern int main();
